package com.group7.mall.service;

import com.group7.mall.dto.UserCartAddDto;
import com.group7.mall.dto.UserCartPreviewDto;
import com.group7.mall.entity.TbUserCart;

import java.util.List;

public interface CartService {

    Integer queryAllCartNumber(String userOpenId);

    int insert(UserCartAddDto userCartAddDto);

    List<UserCartPreviewDto> showUserCart(String userOpenId);

    int deleteById(Integer cartId);

    int updateCartNumberById(TbUserCart tbUserCart);
}
